135 Netgear RP114 URL filtering long request evasion Firewalls 2004/09/02 Marc Ruef marc dot ruef at computec dot ch http://www.computec.ch computec.ch Marc Ruef marc dot ruef at computec dot ch http://www.computec.ch computec.ch 2004/11/14 2.0 Added SecurityTracker ID in version 1.1. Corrected the plugin structure and added the accuracy values in 1.2. Improved the pattern matching and introduced the plugin changelog in 2.0 tcp 80 open|send GET http://www.computec.ch/?%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20 HTTP/1.0\n\n|sleep|close|pattern_not_exists HTTP/1.1 200 OK*Server: NETGEAR: Content Filter/1.#*Access Denied by NETGEAR* 97 This plugin was written with the ATK Attack Editor. Marc Ruef marc dot ruef at computec dot ch http://www.computec.ch computec.ch 2004/05/24 http://www.scip.ch/cgi-bin/smss/showadvf.pl?id=667 Netgear RP114 Other solutions Evasion Netgear has some small router and firewalling devices for home users and small companies (SOHO). Most of these solutions are able to do a simple keyword based URL filtering. Lets say we don't want users to visit http://www.computec.ch so we create a filter for the keyword "computec.ch". If a user wants to access a domain that contains the string "computec.ch" (e.g. www.computec.ch or test.computec.ch) he will get a white html document that says "Blocked by NETGEAR". He is not able to see the requested document itself. The Netgear RP114 is not able to do the filtering if the requested URI is more than 220 bytes long. Other Netgear routers and firewalls may also be affected. If you are requesting the following URL, the attacker is able to see the requested web document without restriction. An attacker may be able to evade the URL black list and get access to disallowed ressources. This may be a buffer overflow and it may be possible to run arbitrary code on the Netgear device. Netgear may provide a new firmware or another workaround. It is suggested to install another URL filtering solution if this functionality is really needed. Approx. 45 minutes Yes http://www.computec.ch/projekte/atk/ No No Medium 6 8 7 6 The ATK is able to exploit this vulnerability. Under some circumstances the WinAmp player is exploiting this vulnerability when fetching data from the Internet about a playing track. See also http://seclists.org/lists/bugtraq/2004/May/0263.html for more details. 10404 11698 http://www.securiteam.com/securitynews/5VP0P15CUK.html 1010263 667 Hacking Intern - Angriffe, Strategien, Abwehr, Marc Ruef, Marko Rogge, Uwe Velten and Wolfram Gieseke, November 1, 2002, Data Becker, Düsseldorf, ISBN 381582284X http://www.securiteam.com/securitynews/5HP01208AQ.html